package reflect;

import reflect.annotations.AutoRunClass;

/*
反射机制访问注解
 */
public class ReflectDemo10 {
    public static void main(String[] args) throws Exception{
        Class cla = Class.forName("reflect.Person");
        boolean mark = cla.isAnnotationPresent(AutoRunClass.class);
        System.out.println("是否被标注：" + mark);
    }
}
